var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.sendNormalTalk_Bottom("#face0#勇士，你来这里有什么事吗？", 37, 9111001, false, true)
        } else {
            if (status === a++) {
                cm.sendNormalTalk_Bottom("我是来传话的，鵺说有话要跟你讲，让你到妖怪森林入口去。", 57, 0, true, true)
            } else {
                if (status === a++) {
                    cm.sendNormalTalk_Bottom("#face0#鵺有话跟我说？可是妖怪森林入口好远，改成四岔路行不行？", 37, 9111001, true, true)
                } else {
                    if (status === a++) {
                        cm.sendNormalTalk_Bottom("嗯，好的。那我去转告他。", 57, 0, true, true)
                    } else {
                        if (status === a++) {
                            cm.updateInfoQuest(58803, "state=2");
                            cm.dispose();
                            cm.warp(800000000, 5, false)
                        }
                    }
                }
            }
        }
    }
};